module planegame{

    export class Bullet extends egret.Sprite {

        protected bulletNum:number;
        protected resName:string;

        protected bulletX:number;
        protected bulletY:number;

        public constructor() {
            super();
            this.bulletNum = 0;
            
        }

        public setBulletNum(bulletNum:number) {
            this.bulletNum = bulletNum; 
        }

        protected getBullet(resName:string):BulletModule {
            let bullet = new BulletModule();
            let result = new egret.Bitmap();
            let texture: egret.Texture = RES.getRes(resName);
            result.texture = texture;
            this.width = texture.textureWidth;
            this.height = texture.textureHeight;
            bullet.addChild(result);
            return bullet;
        }

        public fire() {
            
        }

        public clearAllBullet() {
            
        }

        public removeBullet(v:BulletModule) {

        }

        // 每帧更新子弹轨迹
        public updateFrame() {
            
        }
    }
}